Project ID | 086680CD3A1F050280258935003E6DFD |
Version | 3 |
Class ID | B724066E5F04247780258935004512DC |
Class Type | Derived |
Derived From | AbstractJsonConverter |
Attributes |
fromJson(source As JsonObject) As Variant |
isReturnObj() As Boolean |
toJson(source As Variant) As Variant |
New() |
%REM
The following code is used in ser-10.txt. Converts to strings and numerics for firstName, lastName and age.
%END REM
Dim json as String
Dim helper as New JsonConversionHelper()
Dim jd as New Person()
jd.firstName = "John"
jd.lastName = "Doe"
jd.age = 42
json = helper.withScalarConverter("firstName")._
withScalarConverter("lastName")._
withScalarConverter("age")
toJsonString(jd, false)
Copyright © HCL America, Inc. 1999, 2023. All Rights Reserved.